package com.salton123.imagepicker.log

object ILog {

    private var mLogImpl: ILogCallback? = null

    @JvmStatic
    fun init(callback: ILogCallback) {
        this.mLogImpl = callback
    }

    @JvmStatic
    fun v(tag: String, message: String) {
        mLogImpl?.onILogWithV("[ImagePicker: $tag]", message)
    }

    @JvmStatic
    fun i(tag: String, message: String) {
        mLogImpl?.onILogWithI("[ImagePicker: $tag]", message)
    }

    @JvmStatic
    fun d(tag: String, message: String) {
        mLogImpl?.onILogWithD("[ImagePicker: $tag]", message)
    }

    @JvmStatic
    fun w(tag: String, message: String) {
        mLogImpl?.onILogWithW("[ImagePicker: $tag]", message)
    }

    @JvmStatic
    fun e(tag: String, message: String) {
        mLogImpl?.onILogWithE("[ImagePicker: $tag]", message)
    }
}
